.class public Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;
.super Ljava/lang/Object;
.source "BottomBar.java"


# instance fields
.field private accuracyName:Landroid/widget/TextView;

.field accuracyUnit:Ljava/lang/String;

.field areaUnit:Ljava/lang/String;

.field private ctx:Landroid/content/Context;

.field distanceUnit:Ljava/lang/String;

.field private finish_button:Landroid/widget/Button;

.field private finish_layout:Landroid/widget/LinearLayout;

.field private fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

.field fpath:Ljava/text/DecimalFormat;

.field frest:Ljava/text/DecimalFormat;

.field onFinishButtonClicked:Landroid/view/View$OnClickListener;

.field onStartButtonClicked:Landroid/view/View$OnClickListener;

.field onStopClicked:Landroid/view/View$OnClickListener;

.field speedUnit:Ljava/lang/String;

.field private start_button:Landroid/widget/Button;

.field private stat_accuracy:Landroid/widget/TextView;

.field private stat_area:Landroid/widget/TextView;

.field private stat_path:Landroid/widget/TextView;

.field private stat_speed:Landroid/widget/TextView;

.field private stat_time:Landroid/widget/TextView;

.field state:I

.field private stats_bar:Landroid/widget/LinearLayout;

.field private stop_button:Landroid/widget/LinearLayout;

.field private stop_layout:Landroid/widget/RelativeLayout;

.field private time_elapsed:J

.field private view:Landroid/view/View;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/view/View;I)V
    .locals 2

    .line 67
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/4 v0, 0x0

    .line 58
    iput v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    const-wide/16 v0, 0x0

    .line 64
    iput-wide v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->time_elapsed:J

    .line 218
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar$1;-><init>(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->onStopClicked:Landroid/view/View$OnClickListener;

    .line 248
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar$2;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar$2;-><init>(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->onFinishButtonClicked:Landroid/view/View$OnClickListener;

    .line 260
    new-instance v0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar$3;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar$3;-><init>(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->onStartButtonClicked:Landroid/view/View$OnClickListener;

    .line 68
    new-instance v0, Ljava/text/DecimalFormat;

    const-string v1, "#####0.000"

    invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->fpath:Ljava/text/DecimalFormat;

    .line 69
    new-instance v0, Ljava/text/DecimalFormat;

    const-string v1, "#####0.0##"

    invoke-direct {v0, v1}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->frest:Ljava/text/DecimalFormat;

    .line 70
    iput-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    .line 71
    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->view:Landroid/view/View;

    const v0, 0x7f09022e

    .line 73
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stats_bar:Landroid/widget/LinearLayout;

    const v0, 0x7f090229

    .line 75
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_accuracy:Landroid/widget/TextView;

    const v0, 0x7f09022c

    .line 76
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_speed:Landroid/widget/TextView;

    const v0, 0x7f09022b

    .line 77
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_path:Landroid/widget/TextView;

    const v0, 0x7f09022a

    .line 78
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_area:Landroid/widget/TextView;

    const v0, 0x7f09022d

    .line 79
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_time:Landroid/widget/TextView;

    const v0, 0x7f09002b

    .line 81
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyName:Landroid/widget/TextView;

    const v0, 0x7f090237

    .line 83
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/RelativeLayout;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_layout:Landroid/widget/RelativeLayout;

    const v0, 0x7f09010f

    .line 84
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    const v0, 0x7f09010e

    .line 86
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_button:Landroid/widget/Button;

    const v0, 0x7f090224

    .line 87
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/Button;

    iput-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    const v0, 0x7f090236

    .line 88
    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/LinearLayout;

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_button:Landroid/widget/LinearLayout;

    .line 92
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    const v0, 0x7f1101a5

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

    .line 93
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    const/16 v0, 0x8

    invoke-virtual {p2, v0}, Landroid/widget/Button;->setVisibility(I)V

    .line 94
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    invoke-virtual {p2, v0}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 97
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_button:Landroid/widget/LinearLayout;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->onStopClicked:Landroid/view/View$OnClickListener;

    invoke-virtual {p2, v0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 98
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_button:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->onFinishButtonClicked:Landroid/view/View$OnClickListener;

    invoke-virtual {p2, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 99
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->onStartButtonClicked:Landroid/view/View$OnClickListener;

    invoke-virtual {p2, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 101
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getGpsAccuracyUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyUnit:Ljava/lang/String;

    .line 102
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getSpeedUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->speedUnit:Ljava/lang/String;

    .line 103
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getDistanceUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->distanceUnit:Ljava/lang/String;

    .line 104
    invoke-static {p1}, Llt/noframe/gpsfarmguide/utils/Preferences;->getAreaUnit(Landroid/content/Context;)Ljava/lang/String;

    move-result-object p2

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->areaUnit:Ljava/lang/String;

    .line 106
    new-instance p2, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-direct {p2, p1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;-><init>(Landroid/content/Context;)V

    iput-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    .line 107
    iput p3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    .line 110
    invoke-virtual {p0}, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->setDefaultValues()V

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;)Llt/noframe/gpsfarmguide/analytics/FireAnalytics;
    .locals 0

    .line 25
    iget-object p0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    return-object p0
.end method


# virtual methods
.method public getState()I
    .locals 1

    .line 291
    iget v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    return v0
.end method

.method public getTime_elapsed()J
    .locals 2

    .line 310
    iget-wide v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->time_elapsed:J

    return-wide v0
.end method

.method public remove()V
    .locals 4

    .line 298
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->view:Landroid/view/View;

    const v1, 0x7f090078

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 300
    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    const/16 v3, 0xc8

    invoke-static {v2, v1, v3}, Llt/noframe/gpsfarmguide/utils/Animations;->bottomDown(Landroid/content/Context;Landroid/view/View;I)V

    .line 301
    invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;

    move-result-object v1

    check-cast v1, Landroid/widget/FrameLayout;

    invoke-virtual {v1, v0}, Landroid/widget/FrameLayout;->removeView(Landroid/view/View;)V

    :cond_0
    return-void
.end method

.method public resumeClick()V
    .locals 5

    .line 239
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->fireAnalytics:Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-virtual {v0}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;->sendMapNavResume()V

    .line 240
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    iget-object v0, v0, Llt/noframe/gpsfarmguide/Data;->sprayFunction:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->pauseResumeSpray(Z)V

    .line 241
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_button:Landroid/widget/LinearLayout;

    const/16 v4, 0xc8

    invoke-static {v0, v2, v3, v4}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch;->popOutToPopIn(Landroid/content/Context;Landroid/view/View;Landroid/view/View;I)V

    .line 242
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    invoke-static {v0, v2, v4}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch;->slideOuttoRight(Landroid/content/Context;Landroid/view/View;I)V

    .line 243
    iput v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    return-void
.end method

.method public setAccuracyValue(ZFZ)V
    .locals 4

    if-eqz p1, :cond_0

    .line 161
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyName:Landroid/widget/TextView;

    const v0, 0x7f110116

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 162
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_accuracy:Landroid/widget/TextView;

    invoke-static {p2}, Ljava/lang/String;->valueOf(F)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 164
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyName:Landroid/widget/TextView;

    const v0, 0x7f11001d

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setText(I)V

    .line 165
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_accuracy:Landroid/widget/TextView;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "+-"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->frest:Ljava/text/DecimalFormat;

    float-to-double v2, p2

    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyUnit:Ljava/lang/String;

    invoke-static {v2, v3, p2}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertAccuracy(DLjava/lang/String;)D

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p2, " "

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyUnit:Ljava/lang/String;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 167
    :goto_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_accuracy:Landroid/widget/TextView;

    if-eqz p3, :cond_1

    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f06001f

    goto :goto_1

    :cond_1
    iget-object p2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    invoke-virtual {p2}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p2

    const p3, 0x7f060138

    :goto_1
    invoke-virtual {p2, p3}, Landroid/content/res/Resources;->getColor(I)I

    move-result p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setTextColor(I)V

    return-void
.end method

.method public setAreaValue(D)V
    .locals 4

    .line 197
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_area:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->fpath:Ljava/text/DecimalFormat;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->areaUnit:Ljava/lang/String;

    invoke-static {p1, p2, v3}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertArea(DLjava/lang/String;)D

    move-result-wide p1

    invoke-virtual {v2, p1, p2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->areaUnit:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setDefaultValues()V
    .locals 4

    .line 119
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_accuracy:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "+--"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->accuracyUnit:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 120
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_speed:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "- "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->speedUnit:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 121
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_path:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->distanceUnit:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 122
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_area:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->areaUnit:Ljava/lang/String;

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 123
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_time:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setPathValue(D)V
    .locals 4

    .line 187
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_path:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->fpath:Ljava/text/DecimalFormat;

    iget-object v3, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->distanceUnit:Ljava/lang/String;

    invoke-static {p1, p2, v3}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertDistance(DLjava/lang/String;)D

    move-result-wide p1

    invoke-virtual {v2, p1, p2}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->distanceUnit:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setSpeedValue(F)V
    .locals 5

    .line 177
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_speed:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->frest:Ljava/text/DecimalFormat;

    float-to-double v3, p1

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->speedUnit:Ljava/lang/String;

    invoke-static {v3, v4, p1}, Llt/noframe/gpsfarmguide/utils/Mathematics;->convertSpeed(DLjava/lang/String;)D

    move-result-wide v3

    invoke-virtual {v2, v3, v4}, Ljava/text/DecimalFormat;->format(D)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, " "

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->speedUnit:Ljava/lang/String;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setTimeValue(J)V
    .locals 10

    .line 207
    iput-wide p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->time_elapsed:J

    const-wide/16 v0, 0x3e8

    .line 208
    div-long v0, p1, v0

    const-wide/16 v2, 0x3c

    rem-long/2addr v0, v2

    const-wide/32 v4, 0xea60

    .line 209
    div-long v4, p1, v4

    rem-long/2addr v4, v2

    const-wide/32 v2, 0x36ee80

    .line 210
    div-long/2addr p1, v2

    const-wide/16 v2, 0x18

    rem-long/2addr p1, v2

    const/4 v2, 0x1

    const/4 v3, 0x0

    const/4 v6, 0x2

    const-wide/16 v7, 0x0

    cmp-long v9, p1, v7

    if-lez v9, :cond_0

    .line 212
    iget-object v7, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_time:Landroid/widget/TextView;

    const/4 v8, 0x3

    new-array v8, v8, [Ljava/lang/Object;

    invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    aput-object p1, v8, v3

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    aput-object p1, v8, v2

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    aput-object p1, v8, v6

    const-string p1, "%02d:%02d:%02d"

    invoke-static {p1, v8}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v7, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0

    .line 213
    :cond_0
    iget-object p1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stat_time:Landroid/widget/TextView;

    new-array p2, v6, [Ljava/lang/Object;

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    aput-object v4, p2, v3

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    aput-object v0, p2, v2

    const-string v0, "%02d:%02d"

    invoke-static {v0, p2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    return-void
.end method

.method public setView()V
    .locals 5

    .line 272
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stats_bar:Landroid/widget/LinearLayout;

    const/16 v2, 0x190

    invoke-static {v0, v1, v2}, Llt/noframe/gpsfarmguide/utils/Animations;->bottomUp(Landroid/content/Context;Landroid/view/View;I)V

    .line 274
    iget v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    const/16 v1, 0x8

    const/4 v3, 0x0

    if-eqz v0, :cond_0

    const/4 v4, 0x1

    if-ne v0, v4, :cond_1

    .line 276
    :cond_0
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    invoke-virtual {v0, v1}, Landroid/widget/Button;->setVisibility(I)V

    .line 277
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_button:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 279
    :cond_1
    iget v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    const/4 v4, 0x2

    if-ne v0, v4, :cond_2

    .line 281
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    invoke-virtual {v0, v3}, Landroid/widget/Button;->setVisibility(I)V

    .line 282
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_button:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 283
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 284
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    const/16 v3, 0xc8

    invoke-static {v0, v1, v3}, Llt/noframe/gpsfarmguide/utils/Animations;->slideInFromRight(Landroid/content/Context;Landroid/view/View;I)V

    .line 286
    :cond_2
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_layout:Landroid/widget/RelativeLayout;

    invoke-static {v0, v1, v2}, Llt/noframe/gpsfarmguide/utils/Animations;->bottomUp(Landroid/content/Context;Landroid/view/View;I)V

    return-void
.end method

.method public stopClick()V
    .locals 4

    .line 228
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->getVisibility()I

    move-result v0

    if-eqz v0, :cond_0

    .line 229
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 230
    invoke-static {}, Llt/noframe/gpsfarmguide/Data;->getInstance()Llt/noframe/gpsfarmguide/Data;

    move-result-object v0

    iget-object v0, v0, Llt/noframe/gpsfarmguide/Data;->sprayFunction:Llt/noframe/gpsfarmguide/sprayer/SprayController;

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/sprayer/SprayController;->pauseResumeSpray(Z)V

    .line 231
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->stop_button:Landroid/widget/LinearLayout;

    iget-object v2, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->start_button:Landroid/widget/Button;

    const/16 v3, 0xc8

    invoke-static {v0, v1, v2, v3}, Llt/noframe/gpsfarmguide/utils/AnimatedViewSwitch;->popOutToPopIn(Landroid/content/Context;Landroid/view/View;Landroid/view/View;I)V

    .line 232
    iget-object v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->ctx:Landroid/content/Context;

    iget-object v1, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->finish_layout:Landroid/widget/LinearLayout;

    invoke-static {v0, v1, v3}, Llt/noframe/gpsfarmguide/utils/Animations;->slideInFromRight(Landroid/content/Context;Landroid/view/View;I)V

    const/4 v0, 0x2

    .line 233
    iput v0, p0, Llt/noframe/gpsfarmguide/widgets/BottomNavigationBar/BottomBar;->state:I

    :cond_0
    return-void
.end method
